pattern recognition logic

[计] 模式识别逻辑